<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="write/raphael.js"></script>
<script src="font_generator/Emmentaler_400.font.js"></script>
<script src="write/sprintf.js"></script>
<script src="abc.js"></script>
<script src="font_generator/scalefontemmentaler.js"></script>

<script>

function doScale() {
var paper = Raphael(document.getElementById("canvas"), 1000, 600);
var font = paper.getFont("Emmentaler", 500);
scale_font(font, 30, paper);
}


function showFont() {
var paper = Raphael(document.getElementById("canvas"), 1000, 10000);
var font = paper.getFont("Emmentaler", 500);
var scale = 30/1000;
var x = 0;
var y = 50;
for (glyph in font.glyphs) {

try {
      symb = paper.path(font.glyphs[glyph].d).attr({fill: "#000", stroke: "none"});
      symb.scale(scale,scale,0,0);
      symb.translate(x+30,y);
      paper.text(x,y, glyph.charCodeAt(0).toString(16));
} catch (e) {
 
}
      x = (x+100)%900;
      if (x==0) y+=50;
}

}








</script>
</head>
<body onload="showFont()">
<div id="canvas"></div>
</body>
</html>
